import requests


# r1 = requests.get('http://192.168.2.191:5000/backend/index')
# print(r1.status_code)


def test_bind_phone_and_ethAddress_success():
    '''以太坊和电话号码绑定接口'''
    params = {'eth_address': '0x49007c4e4f69ccc5806cac4abf6072ee4c58c5b1', 'mobile': '13125927831'}
    request = requests.post('http://192.168.2.191:5000/backend/bind_eth', params=params)
    print(request.status_code)
    print(request.text)


if __name__ == '__main__':
    test_bind_phone_and_ethAddress_success()
